<?php 

/**
 * Joomla! 1.5 component arts_curriculum
 * @package    com_arts_curriculum
 * @subpackage
 * @author     Chris Borkowski {@link http://www.guggenheim.org}
 * @author     Created on 15-December-2009
 * @author     Modified on 05-February-2010
 */

// no direct access
defined( '_JEXEC' ) or die( 'Restricted access' );
// image eval and condition statement -->
	 
	 function imagevalues($image) {
			
			$imagepath = JURI::base().'images/content/arts_curriculum/thumbs/'. $image ;
			
			list($width, $height, $type, $attr) =getimagesize($imagepath);
			$ht=$height;
			$wd=$width; 
			if($width == 120){
			$imgdim = 'width="120" height="92"';
			$padding = 'padding:51.5px 12.5px;';
			}elseif ($height == 120) {
			$imgdim = 'height="125" width="91"';
			$padding = 'padding:35px 27px;';
			}
			
			
	}
?>
<div id="ac_lesson_page">

<div id="ac_lesson_cat_title">
<a href="<?php echo JRoute::_( 'index.php?view=category&id='.$this->item->cat_id); ?>"class="ac_category_cat_link">
<h2><?php echo $this->item->category; ?></h2>
</a>
</div>

<div id="ac_lesson_title"><h4><?php echo $this->escape($this->item->title); ?></h4>
</div>

<?php $uri =& JFactory::getURI(); ?>
 <div id="container-1"><!--begin tabs -->
            <ul>
                <li><a href="<?php echo $uri->toString() ;?>#fragment-1"><span>Further Exploration</span></a></li>
                <li><a href="<?php echo $uri->toString() ;?>#fragment-2"><span>View + Discuss</span></a></li>
                <li><a href="<?php echo $uri->toString() ;?>#fragment-3"><span>Teacher Information</span></a></li>

            </ul>


	<div id="fragment-1"><!-- we're indexed on 3 to start because of right orientation -->
		
	<?php if( $this->item->further_reading !=""): ?>
		<p><div id="ac_lesson_further_reading"></p>
		<?php echo $this->item->further_reading; ?>
		</div>
	<?php endif; ?>
	</div>
	
	<div id="fragment-2">
		
<!-- image section -->
<div id="ac_lesson_images_box"> 
<!-- image1 -->
<?php if( $this->item->image1 !=""): ?>

		<div id="ac_image1_wrap">
  		<a id="ac_enlarge-collection" href="images/content/arts_curriculum/masters/<?php echo $this->item->image1; ?>#TB_inline?height=657&amp;width=525&amp;inlineId=full-image1" class="thickbox enlarge show-slideshow">Enlarge</a>
	
    	<div class="ac_collection-space">
		<div id="ac_image1">
		<a href="images/content/arts_curriculum/masters/<?php echo $this->item->image1; ?>#TB_inline?height=657&amp;width=525&amp;inlineId=full-image1" class="thickbox show-slideshow">
		<img src="images/content/arts_curriculum/thumbs/<?php echo $this->item->image1; ?>"  /></a></div>
		</div>
	
		</div><!--end visible-->

<!--this all hides-->
<div id="full-image1" class="full-image-hidden">
<div id="slideshow-loader"><img src="templates/guggenheim/images/ajax-loader.gif" /></div>
<div id="piece-container">
<h2 id="image-artist-name">
<?php if ($this->item->artist_name==""){
	echo $this->item->title;
	}else{
	echo $this->item->artist_name;} ?></h2>
	<img id="full-image-img" src="images/content/arts_curriculum/masters/<?php echo $this->item->image1; ?>" />
	<p id="image-caption"><?php echo $this->item->imgcap1; ?></p>
	<div id="ac_dload"><a href="images/content/arts_curriculum/dloads/<?php echo $this->item->image1; ?>" />Download image</a></div>
</div>
<script type="text/javascript">dontClearCollectionsLightbox=true;</script>
</div>
<?php endif; ?>

<!-- image2 -->
<?php if( $this->item->image2 !=""): ?>

		<div id="ac_image2_wrap">
  		<a id="ac_enlarge-collection" href="images/content/arts_curriculum/masters/<?php echo $this->item->image2; ?>#TB_inline?height=657&amp;width=525&amp;inlineId=full-image2" class="thickbox enlarge show-slideshow">Enlarge</a>
	
    	<div class="ac_collection-space">
		<div id="ac_image2">
		<a href="images/content/arts_curriculum/masters/<?php echo $this->item->image2; ?>#TB_inline?height=657&amp;width=525&amp;inlineId=full-image2" class="thickbox show-slideshow">
		<img src="images/content/arts_curriculum/thumbs/<?php echo $this->item->image2; ?>"  /></a></div>
		</div>
	
		</div><!--end visible-->

<!--this all hides-->
<div id="full-image2" class="full-image-hidden">
<div id="slideshow-loader"><img src="templates/guggenheim/images/ajax-loader.gif" /></div>
<div id="piece-container">
<h2 id="image-artist-name">
<?php if ($this->item->artist_name==""){
	echo $this->item->title;
	}else{
	echo $this->item->artist_name;} ?></h2>
	<img id="full-image-img" src="images/content/arts_curriculum/masters/<?php echo $this->item->image2; ?>" />
	<p id="image-caption"><?php echo $this->item->imgcap2; ?></p>
	<div id="ac_dload"><a href="images/content/arts_curriculum/dloads/<?php echo $this->item->image2; ?>" />Download image</a></div>
</div>
<script type="text/javascript">dontClearCollectionsLightbox=true;</script>
</div>
<?php endif; ?>

<!-- image3 -->
<?php if( $this->item->image3 !=""): ?>

		<div id="ac_image3_wrap">
  		<a id="ac_enlarge-collection" href="images/content/arts_curriculum/masters/<?php echo $this->item->image3; ?>#TB_inline?height=657&amp;width=525&amp;inlineId=full-image3" class="thickbox enlarge show-slideshow">Enlarge</a>
	
    	<div class="ac_collection-space">
		<div id="ac_image3">
		<a href="images/content/arts_curriculum/masters/<?php echo $this->item->image3; ?>#TB_inline?height=657&amp;width=525&amp;inlineId=full-image3" class="thickbox show-slideshow">
		<img src="images/content/arts_curriculum/thumbs/<?php echo $this->item->image3; ?>"  /></a></div>
		</div>
	
		</div><!--end visible-->

<!--this all hides-->
<div id="full-image3" class="full-image-hidden">
<div id="slideshow-loader"><img src="templates/guggenheim/images/ajax-loader.gif" /></div>
<div id="piece-container">
<h2 id="image-artist-name">
<?php if ($this->item->artist_name==""){
	echo $this->item->title;
	}else{
	echo $this->item->artist_name;} ?></h2>
	<img id="full-image-img" src="images/content/arts_curriculum/masters/<?php echo $this->item->image3; ?>" />
	<p id="image-caption"><?php echo $this->item->imgcap3; ?></p>
	<div id="ac_dload"><a href="images/content/arts_curriculum/dloads/<?php echo $this->item->image3; ?>" />Download image</a></div>
</div>
<script type="text/javascript">dontClearCollectionsLightbox=true;</script>
</div>
<?php endif; ?>




</div><!--ac_lesson_images_box-->
		

			
			<div id="ac_lesson_view_n_dis">
			<p><?php echo $this->item->view_n_dis; ?></p>
			</div>
		
			<div id="ac_lessons_image_caps_box">
			
				<div id="imgcap1">
				<?php echo $this->item->imgcap1; ?><br />
				</div>
				
				<div id="imgcap2">
				<?php echo $this->item->imgcap2; ?><br />
				</div>
				<div id="imgcap3">
				<?php echo $this->item->imgcap3; ?><br />
				</div>
				
				<div id="imgcap4">
				<?php echo $this->item->imgcap4; ?><br />
				</div>
			
			</div>
			
			
				
		

</div><!--end fragment-2 -->
		
		<div id="fragment-3"> <!-- we're indexed on 3 to start because or right orientation -->
			<?php if( $this->item->main_body !=""): ?>
			<div id="ac_lesson_main_body">
			<p><?php echo $this->item->main_body; ?></p>
			</div>
			<?php endif; ?>
		
		
		</div><!--end fragment-3 -->

</div><!--end tabs -->
		
</div><!-- end ac_lesson_page-->